<table class="aut_tab profile" width="100%" border="0" cellspacing="0" cellpadding="0" id="tb-XT-info-base">
  <?php if ($o['usertype'] == 6):?>
  <tr>
  	<td class=""><span class="tips">*</span>类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</td>
	<td colspan="3" class="show_info">
		<?php 
			$typeStr = '';
			$oType = '';
			$oTypeStr = '';
			$typeArr = _get_config('type');
			$type = $typeArr[$o['usertype']];
			if ($o['type'])
			{
				if (strstr($o['type'], ',')) {
					$oType = explode(',', $o['type']);
				} else {
					$oTypeStr = $type[$o['type']];
				}
				if (is_array($oType)) {
					foreach($oType as $t) {
						$oTypeStr .= $type[$t].',';
					}
				}
				$oTypeStr = rtrim($oTypeStr, ',');
			}
			echo $oTypeStr;
		?>
	</td>
	<td colspan="3" class="edit_info">
		<?php if ($o['type']):?>
			<input type="hidden" value="<?=$o['type']?>" name="type"/>
	    	<?=$oTypeStr?>
	    <?php else :?>
	    	<?php foreach ($oSysType as $key => $v):?>
	        	<input style="margin-right:2px;" class="ck edit_type_radio" type="radio" name="type" value="<?=$key?>"<?php if(strpos(','.$o['type'].',', ','.$key.',')>-1) echo ' checked';?> /><?=$v?>
	    	<?php endforeach;?>
	    <?php endif;?>
	</td>
  </tr>
  <?php endif;?>
  
  <?php if ((isset($roleArr) && empty($roleArr) && empty($o['type'])) || $roleArr):?>
  <tr class="user_role_arr">
  	<td class=""><span class="tips"></span>分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;类：</td>
	<td colspan="3" class="show_info">
		<?php 
			$write_role = '';
			if ($o['role'])
			{
				$roles = explode(',', $o['role']);
				if ($roles)
				{
					foreach ($roles as $val)
					{
						if (!in_array($val, $roleArr))
						{
							if ($write_role)
							{
								$write_role .= ','.$val;
							}
							else
							{
								$write_role = $val;
							}
						}
					}
				}
			}
			echo $o['role'];
		?>
	</td>
	<td colspan="3" class="edit_info">
		<div style="height:20px;" id="role_sub_checkbox">
	  		<?php if ($roleArr):foreach ($roleArr as $key => $val):?>
	        	<label><input type="checkbox" name="role[]" onclick="checkrole(this)" value="<?=$val?>"<?php if (strstr($o['role'], $val)) echo ' checked';?> /><em style="padding-left:5px"><?=$val?></em></label>
	        <?php endforeach;endif;?>
        </div>
        <div style="height:20px;" id="sole_sub_other">
	        <label><input type="checkbox" class="other_role" name="role[]" value="" onclick="checkrole(this)" <?php if ($write_role) echo ' checked';?>/><em style="padding-left:5px">自定义</em></label>
	        <input type="text" class="other_write_role" name="write_role" value="<?=$write_role?>"/>
        </div>
	</td>
  </tr>
  <?php endif;?>

  <tr>
    <td width="80" class=""><span class="tips">*</span>艺&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
    <td colspan="3" class="show_info">
    	<?=$o['nickname']?>
    </td>
    <td colspan="3" class="edit_info">
      <input name="nickname" type="text" class="txt" id="stage_name" placeholder="请输入艺名" value="<?=$o['nickname']?>"/>
    </td>
  </tr>
  <tr>
    <td width="80" class=""><span class="tips">*</span>真实姓名：<input type="hidden" value="<?=$o['realname']?'1':'2'?>" id="show_hidden_flag"/></td>
    <td colspan="3" class="show_info">
    	<?=$o['realname']?>
    </td>
    <td colspan="3" class="edit_info"><input name="realname" id="realname" type="text" value="<?=$o['realname']?>" class="txt" placeholder="请输入姓名"/></td>
  </tr>
  <tr>
  	<td width="65" class="info_t_right"><span class="tips">*</span>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
  	<td class="reg-sort show_info">
  		<?php if ($o['sex']==1) echo '男';elseif ($o['sex']==2) echo '女';?>
  	</td>
    <td class="reg-sort edit_info">
        <p><input type="radio" name="sex" value="1" <?php if($o['sex']==1) echo 'checked';?> id="sort_1"/><label for="sort_1">男</label></p>
        <p><input type="radio" name="sex" value="2" <?php if($o['sex']==2) echo 'checked';?> id="sort_2"/><label for="sort_2">女</label></p>
    </td>
    <td width="65" class=""><span class="tips">*</span>联系电话：</td>
    <td class="show_info">
    	<?=$o['mobile']?>
    </td>
    <td class="edit_info"><input name="mobile" id="mobile" type="text" class="txt" value="<?=$o['mobile']?>" placeholder="请输入电话"/></td>
  </tr>
  <tr>
  	<td class=""><span class="tips">*</span>Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q：</td>
  	<td class="show_info"><?=$o['qq']?></td>
    <td class="edit_info"><input type="text" class="txt" id="act_qq" value="<?php echo $o['qq']?>" name="qq" placeholder="请输入QQ号"/></td>
    <td class=""><span class="tips">&nbsp;</span>微&nbsp;&nbsp;信&nbsp;&nbsp;号：</td>
    <td class="show_info">
    	<?=$o['wechat']?>
    </td>
    <td class="edit_info"><input type="text" class="txt" value="<?php echo $o['wechat']?>" name="wechat" placeholder="请输入微信号"/></td>
  </tr>
  <tr>
    <td class=""><span class="tips">*</span>所在城市：</td>
    <td colspan="3" class="show_info">
    	<?=$o['city'];?>
    </td>
    <td colspan="3" class="edit_info">
      <span id="divCity"></span>
      <input type="hidden" id="init_city_id" name="init_city_id" value="<?=$o['city_id'];?>">
      <input type="hidden" id="city" name="city" value="<?=$o['city'];?>">
    </td>
  </tr>
  <tr>
    <td class="info_t_right" valign="top"><font>个人简介：</font></p></td>
    <td colspan="3" class="show_info">
    	<?=strip($o['brand'])?>
    </td>
    <td colspan="3" class="edit_info">
        <textarea class="txt text"  name="introduction" cols="" rows=""><?=$o['brand']?></textarea>
    </td>
  </tr>
  <tr>
    <td class="info_t_right" valign="top"><font>工作说明：</font></td>
    <td colspan="3" class="show_info">
    	<?=strip($o['fee'])?>
    </td>
    <td colspan="3" class="edit_info">
        <textarea  class="txt text"  name="introduction_w" cols="" rows=""><?=$o['fee']?></textarea>
    </td>
  </tr>
</table>

<table class="aut_tab profile edit_info" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr style="border-bottom:none;">
    	<td width="80" style="height:80px">&nbsp;</td>
    	<td colspan="3">
        	<input id='submitThree' name="submit" type="submit" class="but" value="保存"/>
		</td>
	</tr>
</table>